<?

	////
	///
	//	Account

		function CO_account_authority( ) {

			global $JO_I18N;

			if( empty( $_SESSION[ "JO_account_key" ] ) ) {

				echo "<script> alert( '" . JO( array(
					"EN" => "Please log in by the account that we've provided.",
					"KO" => "폐사가 발급해 드린 계정으로 로그인 하십시오.",
					"VI" => "Please log in by the account that we've provided."
				) ) . "' ); </script>";

				JO_location( "?CO_unit=01_index" );

			}


			if(	$_SESSION[ "JO_account_authority" ] != "administrator"	&&
				$_SESSION[ "JO_account_authority" ] != "observer"		&&
				$_SESSION[ "JO_account_authority" ] != "CO"				&&
				$_SESSION[ "JO_account_authority" ] != "SO"				) {

				echo "<script> alert( '" . JO( array(
					"EN" => "You do not have a suitable authority to use this page.",
					"KO" => "귀하는 이 페이지를 사용하기 위한 적합한 권한을 가지고 계시지 않습니다.",
					"VI" => "You do not have a suitable authority to use this page."
				) ) . "' ); </script>";

				JO_location( "?CO_unit=01_index" );

			}

		} function CO_authority( ) { return CO_account_authority( ); }

?>
